package nc.ui.so.adjust;

import java.awt.Container;

import nc.ui.trade.bsdelegate.BusinessDelegator;
import nc.ui.trade.business.HYPubBO_Client;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.SuperVO;

public class ClientBusinessDelegator extends BusinessDelegator {
	
	@SuppressWarnings("unused")
	private Container parent = null;
	
	public ClientBusinessDelegator(Container parent ){
		this.parent = parent;
	}
	@SuppressWarnings("unchecked")
	@Override
	public SuperVO[] queryHeadAllData(Class headClass, String strBillType,
			String strWhere) throws Exception {	
		return super.queryHeadAllData(headClass, strBillType, strWhere);
	}
	
	@Override
	public CircularlyAccessibleValueObject[] queryBodyAllData(Class voClass,
			String billType, String key, String strWhere) throws Exception {
		return HYPubBO_Client.queryByCondition(voClass, "  csaleid = '"+key+"' and isnull(dr,0) = 0 ");
	}
}
